package June02;

public class T02Employee {
    private String name;
    private Integer id;
    private double salary;
    private String work;

    private double vacation;


    public T02Employee() {
    }

    public T02Employee(String name, Integer id, double salary, String work, double vacation) {
        this.name = name;
        this.id = id;
        this.salary = salary;
        this.work = work;
        this.vacation = vacation;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return salary
     */
    public double getSalary() {
        return salary;
    }

    /**
     * 设置
     * @param salary
     */
    public void setSalary(double salary) {
        this.salary = salary;
    }

    /**
     * 获取
     * @return work
     */
    public String getWork() {
        return work;
    }

    /**
     * 设置
     * @param work
     */
    public void setWork(String work) {
        this.work = work;
    }

    /**
     * 获取
     * @return vacation
     */
    public double getVacation() {
        return vacation;
    }

    /**
     * 设置
     * @param vacation
     */
    public void setVacation(double vacation) {
        this.vacation = vacation;
    }

    public String toString() {
        return "员工信息{工号:" + id +"\t姓名:" + name + "\t工资:" + salary + "\t工作:" + work + "\t假期:" + vacation ;
    }
}
